package com.bolingcavalry.crm.taskorder.service;/*
 * @Auther:Sadie
 * @Date:2025/5/12
 * @Description:
 * @VERSON:1.8
 */

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.base.ResponseResult;
import com.dto.ConfirmationOrderDTO;
import com.entity.taskorder.ConfirmationOrder;
import com.vo.ConfirmationOrderVO;
import org.springframework.web.multipart.MultipartFile;


public interface ConfirmationService {
    ResponseResult add(ConfirmationOrderDTO confirmationOrderDTO);

    ResponseResult update(ConfirmationOrderDTO confirmationOrderDTO);

    //根据任务单id获取确认表
    ConfirmationOrderVO getByTaskOrderId(Long id) throws Exception;

    ConfirmationOrderVO updateByImage(MultipartFile image) throws Exception;

    boolean batchDelete(String[] ids);

    IPage<ConfirmationOrderVO> getByPage(Integer pageNum, Integer pageSize, String customerName, String taskOrderNumber, String startTime, String endTime, Integer status);

    ConfirmationOrderVO getByServiceNumber(String orderNumber);

    void updateStatus(ConfirmationOrderDTO confirmationOrderDTO);
}
